<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>5秒后跳转</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }

        #countdown {
            font-size: 3em;
            color: #333;
        }
    </style>
</head>
<body>
<h1>发送错误{{ error }}5秒后跳转,还剩
    <div id="countdown">5</div>
</h1>


<script>
    // 倒计时逻辑
    let timeLeft = 5; // 倒计时时间
    const countdownElement = document.getElementById('countdown');

    const countdown = setInterval(() => {
        timeLeft--; // 每秒减1
        countdownElement.textContent = timeLeft; // 更新显示

        if (timeLeft <= 0) {
            clearInterval(countdown); // 停止倒计时
            countdownElement.textContent = "时间到！"; // 显示结束信息
            // 倒计时结束后重定向到其他页面
            window.location.href = "/system/customize/upload"; // 修改为目标URL
        }
    }, 1000); // 每秒执行一次
</script>
</body>
</html>
